'use strict';

var express = require('express');
var router = express.Router();
var businessController = require('../controllers/business.controller');

// 添加一条商机
router.post('/business/add',businessController.add);
// 添加多条商机
router.post('/business/addMultiterm',businessController.addMultiterm);
// 获取商机列表
router.post('/business/getBusinessList',businessController.getBusinessList);
// 获取商机通过id
router.post('/business/getBusinessById',businessController.getBusinessById);
// 获取销售排行
router.post('/business/getSalesRank',businessController.getSalesRank);
// 设置多条商机
router.post('/business/setMultiterm',businessController.setMultiterm);

module.exports = router;
